import request from '@/utils/request'

// 查询应急防护知识列表
export function listDefend(query) {
  return request({
    url: '/epidemic/defend/list',
    method: 'get',
    params: query
  })
}

// 查询应急防护知识详细
export function getDefend(id) {
  return request({
    url: '/epidemic/defend/' + id,
    method: 'get'
  })
}

// 新增应急防护知识
export function addDefend(data) {
  return request({
    url: '/epidemic/defend',
    method: 'post',
    data: data
  })
}

// 修改应急防护知识
export function updateDefend(data) {
  return request({
    url: '/epidemic/defend',
    method: 'put',
    data: data
  })
}

// 删除应急防护知识
export function delDefend(id) {
  return request({
    url: '/epidemic/defend/' + id,
    method: 'delete'
  })
}
